package com.itheima.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Configuration
@ComponentScan("com.itheima.service")   //扫描包
@PropertySource("classpath:jdbc.properties")    //导入外部文件
@Import({JdbcConfig.class,MyBatisConfig.class})     //导入JDBC和MyBatis配置类
@EnableTransactionManagement    //开启事务管理
public class SpringConfig {
}
